/**
 * 
 */
package com.shine.icis.dto;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author zsy
 *
 */
public class EFDept {
	private String depId;
	private String depName;
	private String parentDepId;
	private Set<EFDept> childDepts;
	public String getDepId() {
		return depId;
	}
	public void setDepId(String depId) {
		this.depId = depId;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getParentDepId() {
		return parentDepId;
	}
	public void setParentDepId(String parentDepId) {
		this.parentDepId = parentDepId;
	}
	public Set<EFDept> getChildDepts() {
		return childDepts;
	}
	public void setChildDepts(Set<EFDept> childDepts) {
		this.childDepts = childDepts;
	}
	
	public void addChildDept(EFDept ud) {
		if (childDepts == null) {
			childDepts = new LinkedHashSet<EFDept>();
		}
		childDepts.add(ud);
	}
}
